package iss.java;

/**
 * Created by WeiZehao on 16/9/27.
 */
import java.awt.*;
import javax.swing.JPanel;

public class DrawCircle extends JPanel
{
    public void paintComponent(Graphics g)
    {
        super.paintComponent(g);
        g.setColor(Color.green);//change the color of paintbrush
        for(int i = 0; i < 12; i++)
        {
            g.drawOval(60+i*10,60+i*10,240-i*20,240-i*20);//draw circles
        }// end for
    }// end method paintComponent
}// end class DrawCircle
